package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.app.User;
import org.apache.commons.fileupload.util.LimitedInputStream;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectUserByUserPhone(@Param("phone") String phone,@Param("appId")String appId);

    User selectByPrimaryKey(Long id);

    List<User> registerUserList(@Param("userName")String userName,@Param("phone")String phone);

    List<Map> userList(@Param("communityId")Long communityId,@Param("userName")String userName,@Param("phone")String phone);

    List<Long> selectCommunityIdByPhone(String phone);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
}